package modele;

import java.util.List;
import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Transient;
import javax.persistence.Embeddable;

import org.codehaus.jackson.annotate.JsonIgnore;

/**
 * <p>Pojo mapping TABLE taxe</p>
 * <p></p>
 *
 * <p>Generated at Sat Feb 26 23:34:05 CET 2011</p>
 * @author Salto-db Generator v1.0.16 / EJB3
 * 
 */
@Entity
@Table(name = "taxe")
@SuppressWarnings("serial")
public class Taxe implements Serializable {

	/**
	 * Attribute idTaxe.
	 */
	private Integer idTaxe;
	
	/**
	 * Attribute taCode.
	 */
	private String taCode;
	
	/**
	 * Attribute taIntitule.
	 */
	private String taIntitule;
	
	/**
	 * Attribute taSens.
	 */
	private Integer taSens;
	
	/**
	 * Attribute taTaux.
	 */
	private Float taTaux;
	
	/**
	 * Attribute taTtaux.
	 */
	private Integer taTtaux;
	
	/**
	 * Attribute compteg
	 */
	 private Compteg compteg;	

	/**
	 * Attribute compteg.
	 */
	
	/**
	 * List of Articletaxe
	 */
	private List<Articletaxe> articletaxes = null;

	
	/**
	 * <p> 
	 * </p>
	 * @return idTaxe
	 */
	@Basic
	@Id
	@GeneratedValue
	@Column(name = "id_taxe")
		public Integer getIdTaxe() {
		return idTaxe;
	}

	/**
	 * @param idTaxe new value for idTaxe 
	 */
	public void setIdTaxe(Integer idTaxe) {
		this.idTaxe = idTaxe;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return taCode
	 */
	@Basic
	@Column(name = "ta_code", length = 3)
		public String getTaCode() {
		return taCode;
	}

	/**
	 * @param taCode new value for taCode 
	 */
	public void setTaCode(String taCode) {
		this.taCode = taCode;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return taIntitule
	 */
	@Basic
	@Column(name = "ta_intitule", length = 45)
		public String getTaIntitule() {
		return taIntitule;
	}

	/**
	 * @param taIntitule new value for taIntitule 
	 */
	public void setTaIntitule(String taIntitule) {
		this.taIntitule = taIntitule;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return taSens
	 */
	@Basic
	@Column(name = "ta_sens")
		public Integer getTaSens() {
		return taSens;
	}

	/**
	 * @param taSens new value for taSens 
	 */
	public void setTaSens(Integer taSens) {
		this.taSens = taSens;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return taTaux
	 */
	@Basic
	@Column(name = "ta_taux")
		public Float getTaTaux() {
		return taTaux;
	}

	/**
	 * @param taTaux new value for taTaux 
	 */
	public void setTaTaux(Float taTaux) {
		this.taTaux = taTaux;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return taTtaux
	 */
	@Basic
	@Column(name = "ta_ttaux")
		public Integer getTaTtaux() {
		return taTtaux;
	}

	/**
	 * @param taTtaux new value for taTtaux 
	 */
	public void setTaTtaux(Integer taTtaux) {
		this.taTtaux = taTtaux;
	}
	
	/**
	 * get compteg
	 */
	@ManyToOne
	@JsonIgnore
	@JoinColumn(name = "cg_num")
	public Compteg getCompteg() {
		return this.compteg;
	}
	
	/**
	 * set compteg
	 */
	public void setCompteg(Compteg compteg) {
		this.compteg = compteg;
	}
	
	/**
	 * Get the list of Articletaxe
	 */
	@JsonIgnore
	@OneToMany(mappedBy="taxe")
	 public List<Articletaxe> getArticletaxes() {
	 	return this.articletaxes;
	 }
	 
	/**
	 * Set the list of Articletaxe
	 */
	 public void setArticletaxes(List<Articletaxe> articletaxes) {
	 	this.articletaxes = articletaxes;
	 }


}